﻿<Window x:Class="SlideShowDFG2.EditSlideWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="SlideShowDFG2" Height="339" Width="400" ShowInTaskbar="False" Loaded="Window_Loaded">
    <Grid Margin="5">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="80" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="130" />
            <RowDefinition Height="29" />
            <RowDefinition Height="58" />
            <RowDefinition Height="*" /> 
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>
        <TextBlock Grid.Column="0" Grid.Row="0" FontWeight="Bold" Margin="3">Image File:</TextBlock>
        <StackPanel Grid.Column="1" Grid.Row="0" Margin="3">
            <TextBox Name="tbImageFile" IsEnabled="False" />
            <Separator Background="White" Height="7" />
            <Button Click="btnBrowse_Click" Name="btnBrowse">Browse for Image</Button>
        </StackPanel>
        <StackPanel Grid.Column="2" Grid.Row="0" Margin="3">
            <TextBlock>Preview Image</TextBlock>
            <Image Name="imgPreview" Height="104" Width="104" />
        </StackPanel>
        
        <TextBlock Grid.Column="0" Grid.Row="1" FontWeight="Bold" Margin="3">Title:</TextBlock>
        <TextBox Grid.Column="1" Grid.Row="1" Margin="3" Name="tbTitle" Height="23" VerticalAlignment="Top" Text="{Binding Path=Title}" />
        <Button Click="btnMetadataTitle_Click" Grid.Column="2" IsEnabled="False" Grid.Row="1" Margin="5,3,1,3" Name="btnMetadataTitle">Get From Metadata</Button>
        
        <TextBlock Grid.Column="0" Grid.Row="2" FontWeight="Bold" Margin="3">Description:</TextBlock>
        <TextBox Grid.Column="1" Grid.Row="2" Margin="3" Name="tbDescription" TextWrapping="WrapWithOverflow" Text="{Binding Path=Description}" />
        <Button Click="btnMetadataDesc_Click" Grid.Column="3" Grid.Row="2" IsEnabled="False" Margin="3" Name="btnMetadataDesc">Get From Metadata</Button>
        
        <Button Click="btnOkay_Click" Grid.Column="0" Grid.Row="3" Margin="3" IsDefault="True" Name="btnOkay" >Okay</Button>
        <Button Click="btnCancel_Click" Grid.Column="1" Grid.Row="3" Margin="3" IsCancel="True" Name="btnCancel">Cancel</Button>
        
        <StatusBar Grid.Row="4" Grid.ColumnSpan="3">
            <Label Name="lblStatus" Width="150" Content="Ready" />
            <Separator />
            <ProgressBar Name="pbProgress" Width="200" Height="17" />
        </StatusBar>
    </Grid>
</Window>
